import {axioslink} from '@/api/api'

export let HomeDetail={
    state:{
        Detail:{}
    },
    mutations:{
        HomeDetailInit(state,payload){
            state[payload.key]=payload.value;
            // console.log(state[payload.key])
        }
    },
    actions:{
        HomeDetailxaios(context,payload){
            console.log(payload);
            axioslink("/HomeDetail/list","get").then((ok)=>{
                context.commit("HomeDetailInit",{key:"Detail",value:ok.data.HomeDetail[payload]});
            })
        }
    }
}